﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DOTNETGROUP.Entities;
using DOTNETGROUP.Data;

public partial class Controls_ControlQuyTrinhThucHienWebContent : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            lblQuyTrinh.Text = Server.HtmlDecode(((QuyTrinhWeb)DataRepository.QuyTrinhWebProvider.GetById(1)).NoiDung);  
        }
    }

    protected void btnBuoc_Click(object sender, EventArgs e)
    {
        Button b = (Button)sender;
        int id= int.Parse(b.Text.Substring(5, 1));
        QuyTrinhWeb ent_QuyTrinhWeb = DataRepository.QuyTrinhWebProvider.GetById(id);
        lblQuyTrinh.Text= Server.HtmlDecode(ent_QuyTrinhWeb.NoiDung); 
    }
}
